package com.hzlx.dto;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
// 表示消息队列中的消息
public class OrderPlaceEvent {
    private String orderNumber;
    private Object source;
    public OrderPlaceEvent(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public OrderPlaceEvent(Object source, String orderNumber) {
        this.orderNumber = orderNumber;
        this.source = source;
    }
}
